package priority_queue;


import queue.Queue;

public class PriorityQueueTest {
    public static void main(String[] args) {
        int[] arr=new int[]{3,5,7,6,2,1,9,4};
        Queue<Integer> queue=new PriorityQueue();
        for (int i:arr) {
            queue.offer(i);
        }
        System.out.println(queue.poll());
    }
}
